Kill a Process in Linux

>> Log in via the command line

>> list all process and search for the one that you are interested in

ps auxwww | grep 'NAMEOFPROCESS'

>> Look for the PID of the process of intrest, you should see an output like this:

NAMEOFPROCESS   15731  0.0  3.5  58764 36096 ?        S    Aug19   0:10 /usr/sbin/httpd

 >> The PID of the process is the first listed number, 15731 in this case

>> Kill the process:

sudo kill -9 PID  (in this example, sudo kill -9 15731)

>> Check again

ps auxwww | grep 'NAMEOFPROCESS'

>> note that some processes, especially those dealing with LTO, can take up to 30 minutes to kill.